package com.syxx.oa.domain;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="t_empLevel")
public class EmpLevel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long levId;	//Guid	唯一主键
	private String levName;	//varchar	级别名称
	
	private Set<Authority> authoritys;	//一个级别可以指向多个功能，一个功能可以多个级别使用
	private String levCode;
	
	@Id @GeneratedValue
    public Long getLevId() {
		return levId;
	}
	public void setLevId(Long levId) {
		this.levId = levId;
	}
	
	public String getLevName() {
		return levName;
	}
	public void setLevName(String levName) {
		this.levName = levName;
	}
	@OneToMany(mappedBy="empLevel")
	public Set<Authority> getAuthoritys() {
		return authoritys;
	}
	public void setAuthoritys(Set<Authority> authoritys) {
		this.authoritys = authoritys;
	}
	public String getLevCode() {
		return levCode;
	}
	public void setLevCode(String levCode) {
		this.levCode = levCode;
	}
	

}
